#cmake_minimum_required(VERSION 2.8)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

SET(SOURCE_FILE main.cpp)

#include fils
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include ${PROJECT_SOURCE_DIR}/src)
# other files can consider use CMAKE_INCLUDE_PATH macro

ADD_EXECUTABLE(main ${SOURCE_FILE})

TARGET_LINK_LIBRARIES(main test)